CC = gcc
CFLAGS =
OBJECTS = utility.o exam.o main.o
exam5: $(OBJECTS)
	$(CC) $(OBJECTS) -o $@

utility.o: utility.c utility.h
	$(CC) -c $<

exam.o: exam.c exam.h
	$(CC) -c $<

main.o: main.c utility.h
	$(CC) -c $<
